/*
	Written By Pradipna Nepal
	www.pradsprojects.com

	Copyright (C) 2011 Prads Projects
	Please read COPYING.txt included along with this source code for more detail.
	If not included, see http://www.gnu.org/licenses/
*/

#ifndef LIBEMUINPUTS_H
#define LIBEMUINPUTS_H

#include <windows.h>

#define BUTTON_UP		0
#define BUTTON_DOWN		1
#define BUTTON_LEFT		2
#define BUTTON_RIGHT	3
#define BUTTON_SELECT	4
#define BUTTON_START	5
#define BUTTON_A		6
#define BUTTON_B		7

struct Buttons {
	bool buttons[8];
	unsigned int vk[8];
};

class Inputs {
private:
	Buttons controller1;
public:
	Inputs();

	void keyDown(WPARAM *wParam);
	void keyUp(WPARAM *wParam);

	void checkInputs(unsigned char *cMem);
};

#endif